{
 "cells": [
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2024-10-30T06:15:35.173208Z",
     "start_time": "2024-10-30T06:15:35.169834Z"
    }
   },
   "cell_type": "code",
   "source": [
    "class Father:\n",
    "    __name = \"xx\"\n",
    "    def __init__(self, value):\n",
    "        print(\"Father\")\n",
    "        self.value = value\n",
    "        \n",
    "class Child(Father):\n",
    "    def __init__(self, value):\n",
    "        super().__init__(value)\n",
    "        self.value = value\n",
    "        print(\"Child\")\n",
    "        \n",
    "# child = Child(12)\n",
    "# print(child.value)\n",
    "\n",
    "print(Father.__dict__[\"_Father__name\"])\n",
    "    "
   ],
   "id": "2ea088834de96215",
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "xx\n"
     ]
    }
   ],
   "execution_count": 12
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
